package com.yao.securitydemo;

import org.junit.jupiter.api.Test;
import org.springframework.security.crypto.bcrypt.BCrypt;

/**
 * @author tututu
 * @description
 * @date 2022/4/27 21:43
 */
public class PasswordUtils {

    @Test
    public void passwordCodeGenerate(){
        String hashpw = BCrypt.hashpw("123456", BCrypt.gensalt());
        System.out.println(hashpw);
    }
}
